package cn.westv.scps.yunpian;

import com.yunpian.sdk.YunpianClient;
import com.yunpian.sdk.constant.YunpianConstant;

import cn.westv.scps.utils.PropertiesUtil;

public class Yunpian implements YunpianConstant {
	// public static String APIKEY;
	YunpianClient clnt;
	// static {
	// // APIKEY = "a6dd2d1b75786456983b9bbd29ad86dc";
	// APIKEY = PropertiesUtil.getInstance().getPro("config/yunpian.properties",
	// "yunpian_apikey");
	// }

	public Yunpian() {
		clnt = new YunpianClient(PropertiesUtil.getInstance().getPro("config/yunpian.properties", "yunpian_apikey"))
				.init();
	}

	public void close() {
		clnt.close();
	}

	public YunpianClient getClnt() {
		return clnt;
	}

}
